import re

from requests import RequestException
# import requests
from selenium import webdriver


# TODO
def get_one_page(url):
    try:
        driver = webdriver.Chrome()
        page = driver.get(url)
        if page.status_code == 200:
            return page.page_source
        return None
    except RequestException as e:
        return None


def parse_one_page(html):
    pattern = re.compile()


def main():
    html = get_one_page("https://maoyan.com/board/4?")
    print(html)
    # parse_one_page(html)


if __name__ == '__main__':
    main()
